@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/shuheng/score/score.js?v=5"]}){
<style>
    .layui-rate{
        padding: 0px !important;
    }
    .score{
        width: 50px;
    }
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">任务评分</span>
</div>

<div class="layui-fluid">
    <input type="hidden" name="userLevel" id="userLevel" value="${userLevel}">
    <input type="hidden" name="userCity" id="userCity" value="${userCity}">
    <input type="hidden" name="regionId" id="regionId" value="${regionId}">
    <div class="layui-row">
        <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">
            <div class="layui-card">
                <div class="layui-card-body mini-bar">
                    <div class="ztree" id="jobTree"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm12 layui-col-md9 layui-col-lg10">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select name="year" id="year" lay-filter="year">
                                    @for(item in yearList){
                                    <option value="${item}">${item}年</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <div class="" id="month"></div>
                            </div>
                            @if(userLevel==1){
                            <div class="layui-inline city">
                                <select name="city" id="city" lay-filter="city">
                                    <option value="">请选择市</option>
                                </select>
                            </div>
                            @}
                            <div class="layui-inline county">
                                <select name="county" id="county" lay-filter="county">
                                    <option value="">请选择区县</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select name="status" id="status">
                                    <option value="">请选择上传状态</option>
                                    <option value="0">正常</option>
                                    <option value="1">逾期</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="dataName" class="layui-input" type="text" placeholder="资料名称"/>
                            </div>
                            @if(userLevel==1){
                            <div class="layui-inline">
                                <input id="score" class="layui-input" type="number" step="0.1" placeholder="省市评分差值大于"/>
                            </div>
                            @}
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                            <div class="layui-inline">
                                <button id="exportExcel" class="layui-btn layui-btn-warm icon-btn">导出excel</button>
                            </div>
                            <div class="layui-inline">
                                <button id="btnImport" class="layui-btn layui-btn-normal icon-btn"><i class="layui-icon"></i>完成任务导入</button>
                            </div>
                            @if(shiro.hasPermission("/score/deptExport")){
                            <div class="layui-inline">
                                <button id="deptExport" class="layui-btn layui-btn-danger icon-btn"><i class="layui-icon"></i>导出部门任务</button>
                            </div>
                            @}
                            @if(shiro.hasPermission("/score/deptScoreExport")){
                            <div class="layui-inline">
                                <button id="deptScoreExport" class="layui-btn layui-btn-warm icon-btn"><i class="layui-icon"></i>导出部门评分</button>
                            </div>
                            @}
                            @if(shiro.hasPermission("/score/deptScoreImport")){
                            <div class="layui-inline">
                                <button id="deptScoreImport" class="layui-btn icon-btn"><i class="layui-icon"></i>导入部门评分</button>
                            </div>
                            @}
                        </div>
                    </div>
                    <table class="layui-table" id="dataTable" lay-filter="dataTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/score/toScore")){

    {{#  if(d.file_id==null || d.file_id==''){ }}
    <a class="layui-btn layui-btn-xs layui-btn-disabled">去评分</a>
    <a class="layui-btn  layui-btn-xs layui-btn-disabled">评分记录</a>
    {{#  } else { }}
        {{#  if(d.hasScore){ }}
        <a class="layui-btn layui-btn-primary  layui-btn-xs" lay-event="score">修改评分</a>
        {{#  } else { }}
        <a class="layui-btn layui-btn-xs" lay-event="score">去评分</a>
        {{#  } }}
        <a class="layui-btn layui-btn-xs" lay-event="scoreLog">评分记录</a>
    {{#  } }}

    @}
</script>
<script type="text/html" id="viewFileTpl">
    <a style="color:#1E9FFF; cursor: pointer;" lay-event="viewFile">{{d.file_name}}</a>
</script>
@}